package com.youkeyi.ddy.cloud.common.api.basic.crm.config;

import com.youkeyi.ddy.cloud.common.api.basic.crm.config.dto.CrmCustomerConfigListCloudDto;
import com.youkeyi.ddy.cloud.common.api.basic.crm.config.param.CrmCustomerConfigCreateCloudParam;
import com.youkeyi.ddy.cloud.common.api.basic.crm.config.param.CrmCustomerConfigQueryCloudParam;
import com.youkeyi.ddy.cloud.common.api.basic.crm.config.param.CrmCustomerConfigUpdateCloudParam;
import com.youkeyi.ddy.cloud.common.response.ResponseContent;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * CrmCustomerConfigCloudService
 *
 * @Author liuxiawang
 * @Date 2024/3/1 10:54 AM
 * @Location shenzhen.china
 */
@RestController
@FeignClient(value = "YOUKEYI-DDY-CLOUD-BASIC-CRM", fallback = CrmCustomerConfigCloudServiceFallback.class)
@RequestMapping("/crm/customer/config")
public interface CrmCustomerConfigCloudService {

    /**
     * 查询配置列表.
     *
     * @param param the param
     * @return the customer input config list cloud dto
     */
    @PostMapping(value = "/query")
    public abstract CrmCustomerConfigListCloudDto query(@RequestBody CrmCustomerConfigQueryCloudParam param);

    /**
     * 新增配置.
     *
     * @param param the param
     * @return the response content
     */
    @PostMapping(value = "/create")
    public abstract ResponseContent create(@RequestBody CrmCustomerConfigCreateCloudParam param);

    /**
     * 编辑配置.
     *
     * @param param the param
     * @return the response content
     */
    @PostMapping(value = "/update")
    public abstract ResponseContent update(@RequestBody CrmCustomerConfigUpdateCloudParam param);
    
}
